﻿{% extends 'base.html' %}


{% block content %}




    <!-- /主体 -->
    <div id="main-container" class="container clearfix">
        <section class="post-left">
            <div class="breadcrumb">您的位置： <a itemprop="breadcrumb" href="{% url 'index' %}">首页</a> »
                <a href="{% url 'index' %}list-{{ show.category.id }}.html">{{ show.category.name }}</a> »
                <span class="current">正文</span>
            </div>

            <div class="post-main clearfix">
                <h1 class="post-title">{{ show.title }}</h1>
                <div class="post-con clearfix">
                    <div class="article-meta">
                    <span class="item">分类：<a href="{% url 'index' %}list-{{ show.category.id }}.html"
                                             rel="category tag">{{ show.category.name }}</a></span>
                        <span class="item">作者：{{ show.user }}</span>
                        <span class="item">浏览：{{ show.views }}</span>
                        <span class="item">{{ show.created_time }}</span>

                    </div>
                    <article class="article-content">
                        {{ show.body|safe }}
                    </article>

                    <div class="post-tag"><span class="fa fa-tags" aria-hidden="true"></span>标签：
                        {% for tags in tags_list %}
                            <a href="{% url 'index' %}tag/{{ tags.name }}" rel="tag">{{ tags.name }}</a>
                        {% endfor %}

                    </div>
                    <div>
                        <div><b>上一篇：</b>
                            {% if netx_blog %}
                                <a href="show-{{ netx_blog.pk }}.html" class="article-tag">{{ netx_blog }}</a>
                            {% else %}
                                没有了
                            {% endif %}
                        </div>
                        <div><b>下一篇：</b>
                            {% if previous_blog %}
                                <a href="show-{{ previous_blog.pk }}.html" class="article-tag">{{ previous_blog }}</a>
                            {% else %}
                                没有了
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>

    </div>
    <!-- /文章 -->


    <div class="recommend  hidden-xs">

        <div class="head clearfix"><span class="sp">您可能感兴趣的:</span></div>
        <ul>
            {% for hot in hot_list %}
                <li>
                    <div class="pic">
                        <a href="{% url 'index' %}show-{{ hot.id }}.html" title="{{ hot.title }}">
                            <img src="{% url 'index' %}media/{{ hot.img }}"
                                 srcset="{% url 'index' %}media/{{ hot.img }}"
                                 alt="{{ hot.title }}" class="wp-post-image" width="145" height="100"/></a>
                    </div>
                    <a class="descript " href="{% url 'index' %}show-{{ hot.id }}.html" rel="bookmark"
                       title="{{ hot.title }}">{{ hot.title }}</a>
                </li>
            {% endfor %}
        </ul>
    </div>
    </div>

{% endblock %}



